package com.yycx.module.bus.client.entity.hy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 海鹰erp订单
 *
 * @author flyme
 * @date 2023-02-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_erp_order")
@TableAlias("beo")
@ApiModel(value = "BusErpOrder对象", description = "海鹰erp订单")
public class BusErpOrder extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "orderId", type = IdType.ASSIGN_ID)
    private String orderId;

    @ApiModelProperty(value = "订单类型 1销售 2采购")
    private Integer orderType;

    @ApiModelProperty(value = "方式名称")
    private String saleType;

    @ApiModelProperty(value = "签字 1是0否")
    private Integer sign;

    @ApiModelProperty(value = "复核 1是0否")
    private Integer reviewed;

    @ApiModelProperty(value = "单据编码")
    private String orderNo;

    @ApiModelProperty(value = "单据日期")
    private String orderDate;

    @ApiModelProperty(value = "合计数量")
    private Integer saleNum;

    @ApiModelProperty(value = "合计含税金额")
    private BigDecimal saleAmount;

    @ApiModelProperty(value = "已收付额")
    private BigDecimal receiptAmount;

    @ApiModelProperty(value = "业务员姓名")
    private String saleManName;

    @ApiModelProperty(value = "票清 1有票 0无票")
    private Integer invoice;

    @ApiModelProperty(value = "单位ID")
    private Long companyId;

    @ApiModelProperty(value = "单位编码")
    private String companyCode;

    private String companyName;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    //凭证编号
    private String voucher;

    private String erpDbName;
    private String hyDwCode;
    private String voucherJSON;

    @ApiModelProperty(value = "凭证处理状态 0未完成 1完成")
    private Integer voucherHandleState;
    private Integer voucherCount;

    @ApiModelProperty(value = "操作人")
    private Long operateUser;

}
